projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fa002c
)
[emacs]: Include stdio.h.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 30 Apr 2002 22:48:20 +0000
(22:48 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 30 Apr 2002 22:48:20 +0000
(22:48 +0000)
(GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
src/s/gnu.h
patch
|
blob
|
history
diff --git
a/src/s/gnu.h
b/src/s/gnu.h
index 6a38dc6f588b0d83ea19d6d559b04772f0a6f4ed..bc2c1fcfb3a2812ddc1d8f5007c347785d78c907 100644
(file)
--- a/
src/s/gnu.h
+++ b/
src/s/gnu.h
@@
-78,3
+78,12
@@
Boston, MA 02111-1307, USA. */
#endif
#define NARROWPROTO 1
+
+#ifdef emacs
+#include <stdio.h> /* Get the definition of _IO_STDIO_H. */
+#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
+/* new C libio names */
+#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
+ ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
+#endif /* !_IO_STDIO_H */
+#endif /* emacs */